﻿@Html.DevExpress().ReportViewer(settings =>
{
    // The following settings are necessary for a Report Viewer. 
    settings.Name = "reportViewer1";
    settings.Report = (ElingOA6_Admin_DSJCJ.Areas.Admin.Views.Print.FwmmyhReport)ViewData["Report"];
    settings.Report.DataSource = ViewData["data"] as System.Data.DataSet;
    // Callback and export route values specify corresponding controllers and their actions. 
    // These settings are necessary as well. 
    settings.ClientSideEvents.BeginCallback = "function(s,e){OnBeginCallback(s,e)}";
    settings.CallbackRouteValues = new { Controller = "Print", Action = "ReportViewerPartial" };
    settings.ExportRouteValues = new { Controller = "Print", Action = "FwmmyhReportViewer" };  
}).GetHtml()
